package com.ocom.common.vo.webapi;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.vo.human.UserListVo;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class AddVo implements Serializable {

    private static final long serialVersionUID = 43330455827440215L;
    private Long comId;
    private Long deptId;
    @JsonProperty("pCode")
    private String pCode;
    @JsonProperty("pName")
    private String pName;
    @JsonProperty("pPwd")
    private String pPwd;
    @JsonProperty("pSex")
    private Integer pSex;
    @JsonProperty("pType")
    private Long pType;
    @JsonProperty("pPhone")
    private String pPhone;
    @JsonProperty("pIdentity")
    private String pIdentity;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("pBorn")
    private Date pBorn;
    @JsonProperty("pAddress")
    private String pAddress;
    @JsonProperty("pPhotoUrl")
    private String pPhotoUrl;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("accountNo")
    private String accountNo;
    @JsonProperty("accountName")
    private String accountName;
    @JsonProperty("accountState")
    private  Integer accountState;
    @JsonProperty("accTypeId")
    private Integer accTypeId;

    @JsonProperty("bankNo")
    private String bankNo;

    @JsonProperty("pTags")
    private List<UserListVo.PTags> pTags =new ArrayList<>();

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+08")
    @JsonProperty("endDate")
    private Date endDate;
}
